package com.un.ebs.customer.domain;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import com.un.ebs.core.metadata.DbField;
import org.springframework.stereotype.Component;

/**
 * (CustomerTraceBookExt)表实体类
 *
 * @author liubo
 * @since 2020-07-06 23:21:41
 */
@Data
@Component
@TableName("v_customer_trace_book_ext")
@SuppressWarnings("serial")
public class CustomerTraceBookExt extends Model<CustomerTraceBookExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "trace_id", length = 40, precision = 0)
    private String traceId;

    @DbField(name = "book_spu_id", length = 40, precision = 0)
    private String bookSpuId;

    @DbField(name = "book_day", length = 10, precision = 0)
    private String bookDay;

    @DbField(name = "start_time", length = 10, precision = 0)
    private String startTime;

    @DbField(name = "end_time", length = 10, precision = 0)
    private String endTime;

    @DbField(name = "remark", length = 500, precision = 0)
    private String remark;

    @DbField(name = "customer_id", length = 40, precision = 0)
    private String customerId;

    @DbField(name = "customer_name", length = 100, precision = 0)
    private String customerName;

    @DbField(name = "customer_phone", length = 100, precision = 0)
    private String customerPhone;

    @DbField(name = "spu_name_as", length = 2100, precision = 0)
    private String spuNameAs;

    @DbField(name = "defunct_id", length = 40, precision = 0)
    private String defunctId;

    @DbField(name = "defunct_name", length = 100, precision = 0)
    private String defunctName;

    @DbField(name = "defunct_sex", length = -1, precision = 0)
    private Integer defunctSex;

    @DbField(name = "tomb_sku_id", length = 40, precision = 0)
    private String tombSkuId;

    @DbField(name = "tomb_sku_name_as", length = 2100, precision = 0)
    private String tombSkuNameAs;

    @DbField(name = "tomb_bury_time", length = -1, precision = 0)
    private Date tombBuryTime;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "order_item_count", length = -1, precision = 0)
    private Integer orderItemCount;


}